<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<h3>My Profile</h3>
<tr>
	<td><strong>My Id :</strong> ${currentUser.name}</td>
</tr>

<br />
<br />

<h3>Modify Parameters</h3>
<tr>
	<td>
	<label for="firstname">Set FirstName :</label>
	<input type="text" name="firstname" id="firstname"  />
		<script type="text/javascript">
			Spring.addDecoration(new Spring.ElementDecoration({
						elementId : "firstname",
						widgetType : "dijit.form.ValidationTextBox",
						widgetAttrs : { promptMessage : "Your FirstName", required : true }}));
		</script>
	</td>
	<br />
	<td>
		<label for="name">Set Name :</label>
		<input type="text" name="name" id="name" value="${currentUser.name}"/>
			<script type="text/javascript">
				Spring.addDecoration(new Spring.ElementDecoration({
							elementId : "name",
							widgetType : "dijit.form.ValidationTextBox",
							widgetAttrs : { promptMessage : "Your Name", required : true }}));
			</script>
	</td>
	<br />
	<td>
		<label for="age">Set Age :</label>
			<input type="text" name="age" id="age" />
				<script type="text/javascript">
					Spring.addDecoration(new Spring.ElementDecoration({
								elementId : "age",
								widgetType : "dijit.form.ValidationTextBox",
								widgetAttrs : { promptMessage : "Your Age", required : true }}));
				</script>
	
	
	</td>
	<br />
	<td>
		<label for="password">Set Password :</label>
			<input type="text" name="password" id="password" />
				<script type="text/javascript">
					Spring.addDecoration(new Spring.ElementDecoration({
								elementId : "password",
								widgetType : "dijit.form.ValidationTextBox",
								widgetAttrs : { promptMessage : "Your password", required : true,
									invalidMessage : "Your password must be 6-character long and be composed of both digits and letters.",
									regExp : "(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{6,40})$"  }}));
				</script>
	
	
	</td>	
	<br />
</tr>